﻿using System;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace ModelViewer
{
    public class Settings : ApplicationSettingsBase
    {
        [UserScopedSetting()]
        [DefaultSettingValue("255, 56, 56, 56")]
        public Color BackgroundColor
        {
            get { return ((Color)this["BackgroundColor"]); }
            set
            {
                this["BackgroundColor"] = (Color)value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("255, 255, 0, 0")]
        public Color AxisColorX
        {
            get { return ((Color)this["AxisColorX"]); }
            set
            {
                this["AxisColorX"] = (Color)value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("255, 0, 255, 0")]
        public Color AxisColorY
        {
            get { return ((Color)this["AxisColorY"]); }
            set
            {
                this["AxisColorY"] = (Color)value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("255, 0, 0, 255")]
        public Color AxisColorZ
        {
            get { return ((Color)this["AxisColorZ"]); }
            set
            {
                this["AxisColorZ"] = (Color)value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("255, 128, 128, 128")]
        public Color AmbientColor
        {
            get { return ((Color)this["AmbientColor"]); }
            set
            {
                this["AmbientColor"] = (Color)value;
            }
        }

        [UserScopedSettingAttribute()]
        [DefaultSettingValueAttribute("1000, 750")]
        public Size FormSize
        {
            get { return (Size)this["FormSize"]; }
            set { this["FormSize"] = value; }
        }
        
        public Settings()
        {
           // Configuration conf = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoaming);            
        }

    }
}
